package com.bw.user_module.register;

import com.bw.user_module.user.UserEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface ApiService {

    //注册接口
    @POST("userCenter/register")
    Observable<RegisterEntity>requestRegister(@Body RequestBody body);

    //登录接口->注册成功后，根据注册账号密码->rxjava flatmap操作符转化任务为 Observable<UserEntity>
    @POST("userCenter/login")
    Observable<UserEntity>requestLogin(@Body RequestBody body);

}
